import 'package:flutter/material.dart';

enum AppThemeType {
  warmBrown('温暖棕色', Color(0xFF8D6E63), Color(0xFF6D4C41)),
  freshGreen('清新绿色', Color(0xFF66BB6A), Color(0xFF43A047)),
  elegantPurple('优雅紫色', Color(0xFF7E57C2), Color(0xFF5E35B1)),
  deepBlueGray('沉稳蓝灰', Color(0xFF546E7A), Color(0xFF37474F));

  final String name;
  final Color primaryColor;
  final Color accentColor;

  const AppThemeType(this.name, this.primaryColor, this.accentColor);

  ThemeData get themeData {
    return ThemeData(
      colorScheme: ColorScheme.fromSeed(
        seedColor: primaryColor,
        primary: primaryColor,
      ),
      useMaterial3: true,
      appBarTheme: AppBarTheme(
        backgroundColor: primaryColor,
        foregroundColor: Colors.white,
      ),
      floatingActionButtonTheme: FloatingActionButtonThemeData(
        backgroundColor: accentColor,
        foregroundColor: Colors.white,
      ),
    );
  }
}
